﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sharpTV.Windows
{
	public static class UIHelper
	{
		public static void Repositioning(this System.Windows.Forms.ProgressBar progressBar)
		{
			if (!progressBar.Visible)
				return;
			System.Windows.Forms.Control container = progressBar.Parent;
			progressBar.Left = (container.Width / 2) - (progressBar.Width / 2);
			progressBar.Top = (container.Height / 2) - (progressBar.Height / 2);
		}
	}
}